﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LibNiconico.NiconicoApi.Internal;
using LibNiconico.NiconicoApi.Extentions;

namespace LibNiconico.NiconicoApi.Videos.Comments.TheadKey
{
    /// <summary>
    /// ニコニコ動画スレッドキー問い合わせ情報
    /// </summary>
    public sealed class NicoVideoGetThreadKeyQueryInfo:NicoUrlAble
    {
        string Thread { get; set; }

        string LanguageId { get; set; }
        
        /// <summary>
        /// URLパスとして取得
        /// </summary>
        /// <returns></returns>
        internal override string AsPath()
        {
            return "api/getthreadkey";
        }

        /// <summary>
        /// URL問い合わせ文字列として取得
        /// </summary>
        /// <returns></returns>
        internal override string AsQuery()
        {
            QueryStrings query = new QueryStrings();
            query.Add("thread", this.Thread);
            query.Add("langage_id", this.LanguageId);
            return query.ToString();
        }
    }
}
